package com.mioto.ld.communication.websocket.model;

import cn.hutool.json.JSONUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author mioto-qinxj
 * @date 2024/6/9
 * @desc
 */
@Getter
@Setter
@AllArgsConstructor
public class AlertNotifyBody {
    /**
     * 产品id
     */
    private int productId;
    /**
     * 机构名称
     */
    private String orgName;
    /**
     * 告警id
     */
    private int alertId;

    @Override
    public String toString() {
        return JSONUtil.createObj()
                .accumulate("productId",productId)
                .accumulate("orgName",orgName)
                .accumulate("alertId",alertId)
                .toString();
    }
}
